// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.audio.parameters;

import zombie.audio.FMODLocalParameter;
import zombie.characters.IsoGameCharacter;

public final class ParameterEquippedBaggageContainer extends FMODLocalParameter {
    private final IsoGameCharacter character;
    private ParameterEquippedBaggageContainer.ContainerType containerType = ParameterEquippedBaggageContainer.ContainerType.None;

    public ParameterEquippedBaggageContainer(IsoGameCharacter _character) {
        super("EquippedBaggageContainer");
        this.character = _character;
    }

    @Override
    public float calculateCurrentValue() {
        return (float)this.containerType.label;
    }

    public void setContainerType(ParameterEquippedBaggageContainer.ContainerType _containerType) {
        this.containerType = _containerType;
    }

    public void setContainerType(String _containerType) {
        if (_containerType != null) {
            try {
                this.containerType = ParameterEquippedBaggageContainer.ContainerType.valueOf(_containerType);
            } catch (IllegalArgumentException illegalArgumentException) {
            }
        }
    }

    public static enum ContainerType {
        None(0),
        HikingBag(1),
        DuffleBag(2),
        PlasticBag(3),
        SchoolBag(4),
        ToteBag(5),
        GarbageBag(6);

        public final int label;

        private ContainerType(int int1) {
            this.label = int1;
        }
    }
}
